-- GENERATED SPELL FOR [Scorpid Bonecrawler] --


function spell0_22100(pUnit, Event) --@Toughen,Self--
pUnit:FullCastSpellOnTarget(33962,pUnit)
pUnit:RegisterEvent('Sorts_22100', 642, 1)
end

function spell1_22100(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22100', 45000, 1)
end

function Sorts_22100(pUnit, Event)
local choix_sorts_22100 = math.random(0, 1)
if choix_sorts_22100 == 0 then
pUnit:RegisterEvent('spell0_22100', 1, 1)
end
if choix_sorts_22100 == 1 then
pUnit:RegisterEvent('spell1_22100', 1, 1)
end
end

function mob22100_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22100', math.random(1500, 3000), 1)
end

function mob22100_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22100_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22100_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22100, 1, 'mob22100_Action')
RegisterUnitEvent(22100, 2, 'mob22100_Leave')
RegisterUnitEvent(22100, 3, 'mob22100_Kill')
RegisterUnitEvent(22100, 4, 'mob22100_Die')
